package model

import "gorm.io/gorm"

type User struct {
	gorm.Model
	UserId       string `json:"user_id" gorm:"column:user_id;type:CHAR(38)  NOT NULL;comment:用户唯一id"`
	UserName     string `json:"user_name,omitempty" gorm:"column:user_name;type:VARCHAR(40)  NOT NULL;comment:用户名"`
	UserPassword string `json:"user_password,omitempty" gorm:"column:user_password;type:VARCHAR(40)  NOT NULL;comment:用户名"`
	Email        string `json:"user_email,omitempty"  gorm:"column:user_password;type:VARCHAR(32)  NOT NULL;comment:用户名"`
}

func (User) TableName() string {
	return "users"
}
